/**
 * DiggApiNet - Digg API .NET Wrapper
 * 
 * Author: Sean Hickey
 * Link: http://www.headzoo.com/digg_api_net
 * License: GPL v2 ( http://www.gnu.org/licenses/gpl.txt )
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace DiggApiNet
{
    public class DiggContainer : DiggReturnBase
    {
        public string Name
        {
            get
            {
                XmlNode node = (XmlNode)_dict["container"];
                return node.Attributes["name"].InnerText;
            }
        }
        public string ShortName
        {
            get
            {
                XmlNode node = (XmlNode)_dict["container"];
                return node.Attributes["short_name"].InnerText;
            }
        }

        public DiggContainer(XmlDocument xml_doc) : this(xml_doc.SelectSingleNode("containers").SelectSingleNode("container"))
        {
            
        }
        public DiggContainer(XmlNode node) : base(node)
        {

        }

        public override string ToString()
        {
            return Name;
        }
    }
}
